package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ServiceLineOfBusiness generated by hbm2java
 */
//@Entity
//@Table(name = "SERVICE_LINE_OF_BUSINESS", schema = "SANKAR")
public class ServiceLineOfBusiness implements java.io.Serializable {

    private ServiceLineOfBusinessId id = new ServiceLineOfBusinessId();
    private BigDecimal createdByUserId;
    private Date createdDate;

    public ServiceLineOfBusiness() {
    }

    public ServiceLineOfBusiness(ServiceLineOfBusinessId id) {
        this.id = id;

    }

    public ServiceLineOfBusiness(ServiceLineOfBusinessId id, BigDecimal createdByUserId, Date createdDate) {
        this.id = id;
        this.createdByUserId = createdByUserId;
        this.createdDate = createdDate;
    }

    @EmbeddedId
    public ServiceLineOfBusinessId getId() {
        return this.id;
    }

    public void setId(ServiceLineOfBusinessId id) {
        this.id = id;
    }

    @Column(name = "CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }

    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "CREATED_DATE", length = 7)
    public Date getCreatedDate() {
        return this.createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public ServiceLine getServiceLine() {
        return this.getId().getServiceLine();
    }

    public void setServiceLine(ServiceLine serviceLine) {
        this.getId().setServiceLine(serviceLine);
    }

    public LineOfBusiness getLineOfBusiness() {
        return this.getId().getLineOfBusiness();
    }

    public void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
        this.getId().setLineOfBusiness(lineOfBusiness);
    }
}
